package com.itheima.boject;

import java.util.Scanner;

public class StringReplace {
    public static void main(String[] args) {
        //键盘录入
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入:");
        String s = sc.nextLine();

        //replace敏感词过滤
        String s1 = s.replace("TMD","***");

        //输出结果
        System.out.println((s1));
    }
}
